package java8Up;

import java.lang.reflect.Method;

/**
 * @author Fang Ruichuan
 * @date 2022-09-18 21:05
 */

public class VoidTest {
    public void hello() {}

    public static void main(String[] args) {
        for (Method method : VoidTest.class.getMethods()) {
            if (Void.TYPE.equals(method.getReturnType())) {
                System.out.println(method.getName());
            }
        }
    }
}
